<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style lang="">
    .box {
      width: 500px;
      height: 500px;
      background-color: red;
      display: flex;
      justify-content: space-between;
      flex-direction: column;
      flex-wrap: wrap-reverse;
    }
    .item {
      width: 100px;
      height: 100px;
      background-color: aqua;
    }
  </style>
</head>
<body>

  <div class="box">
    <div class="item">1</div>
    <div class="item">2</div>
    <div class="item">3</div>
  </div>
  
</body>
</html>